package com.cn.wanxi.util.servlet;

import com.cn.wanxi.util.service.impl.AboutNavService;
import com.cn.wanxi.util.service.impl.HeaderService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet("/booking")
public class BookingServlet extends HomeServletServlet {
    AboutNavService aboutNavService =new AboutNavService();
    HeaderService headerService =new HeaderService();
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        super.doGet(req, resp);
        gotobooking(req,resp);
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        gotobooking(req,resp);
    }
    private void gotobooking(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.getRequestDispatcher("/jsp/booking.jsp").forward(req,resp);
    }
}
